#include "StdAfx.h"
#include "ListenServer.h"
#include "ServerNetsystem.h"

ListenServer::ListenServer(QObject *parent):QObject(parent)
{
	pServerNetsystem = new ServerNetsystem(this);
}


ListenServer::~ListenServer(void)
{
}

void ListenServer::Start()
{
	if (pServerNetsystem)
	{
		pServerNetsystem->Start();
	}
}

QString ListenServer::GetPort()
{
	if (pServerNetsystem)
	{
		return pServerNetsystem->GetPort();
	}
	return "";
}